package com.daxt.model.service.archives.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.daxt.model.service.archives.base.ArchivesListBase;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "全文检索内容", description = "全文检索内容")
@TableName("t_article")
public class Article implements Serializable{

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;



	@TableId(value = "id", type = IdType.NONE)
	private Long id;

	@ApiModelProperty(value = "标题", name = "title")
	private String title;

	@ApiModelProperty(value = "档号", name = "archivalNum")
	private String archivalNum;

	@ApiModelProperty(value = "责任者", name = "dutyPeople")
	private String dutyPeople;

	@ApiModelProperty(value = "正文内容", name = "content")
	private String content;

	@ApiModelProperty(value = "附件名", name = "fileName")
	private String fileName;

	@TableField(exist = false)//是否数据库字段
	@ApiModelProperty(value = "附件名集合", name = "fileNames")
	private List<String> fileNames;

	@TableField(exist = false)//是否数据库字段
	@ApiModelProperty(value = "借阅状态", name = "borrowState")
	private String borrowState;

	@TableField(exist = false)//是否数据库字段
	@ApiModelProperty(value = "文件类型", name = "fileType")
	private String fileType;

	@TableField(exist = false)//是否数据库字段
	@ApiModelProperty(value = "文件内容串", name = "contentStr")
	private String contentStr;


}
